﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sun.Mvc.Models;

namespace Sun.Mvc.IDAL
{
    public interface IUsers
    {
        /// <summary>
        /// 根据账号和密码获取用户信息
        /// </summary>
        /// <param name="model">用户</param>
        /// <returns></returns>
        Users GetUserInfoByAccount(Users model);
        /// <summary>
        /// 根据账号获得用户的私盐
        /// </summary>
        /// <param name="UserName">用户名</param>
        /// <returns></returns>
        string GetSaltByAccount(string UserName);
        /// <summary>
        /// 新增用户
        /// </summary>
        /// <param name="model">用户</param>
        /// <returns></returns>
        int Insert(Users model);
    }
}
